<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
//include './libs/adodb/adodb.inc.php';
//include './configuracion.php';
include 'include/GCampania.php';
if($_POST['id'])
{
    $gcam = new GCampania();
    $cam_cod=$_POST['id'];
    /*
    $sql=mysql_query("select b.id,b.data from data_parent a,data b where b.id=a.did and parent='$id'");
    while($row=mysql_fetch_array($sql))
    {
    $id=$row['id'];
    $data=$row['data'];
    echo '<option value="'.$id.'">'.$data.'</option>';
    }*/
    $c = new Campania();
    $c = $gcam->Obtener($cam_cod);
    if($c!=null)
    {
        $conten = $c->getcam_contenido();
        $con = html_entity_decode($conten);
        echo $con;
    }else
        echo "NULL";
}
?>
